<div class="bjui-pageContent">
    <table class="table table-bordered" data-toggle="datagrid" data-options="{
        height: '100%',
        gridTitle : '产品列表',
        showToolbar: true,
        toolbarItem: 'add',
        editMode: 'online',
        postData: {product_id:{{$productId}} },
        local: 'remote',
        dataUrl: '/admin/pro/attr-list',
        editUrl: '/admin/pro/attr-save?product_id={{$productId}}',
        delUrl: '/admin/pro/attr-del',
        delPK: 'id',
        linenumberAll: true,
        sortAll: false,
        contextMenuH: true,
        contextMenuB: true,
        inlineEditMult: false,
        paging: {showPagenum:10, selectPageSize:'20,50,100', pageCurrent:1, pageSize:20},
        showEditbtnscol: '操作',
        customEditbtns: {width:200,position:'replace'},
        fullGrid: true,
        fieldSortable: false,
        filterThead: false,
        columnMenu: false,
    }">
        <thead>
        <tr>
            <th data-options="{name:'field_name',align:'center',width:100}">属性名称</th>
            <th data-options="{name:'field_value',align:'center',width:100}">属性值</th>
            <th data-options="{name:'field_type', type:'select', items:fields_type_option, align:'center',width:100}">类型</th>
        </tr>
        </thead>
    </table>
</div>
<script>
    function fields_type_option(){
        return [{!! $fieldsType !!}]
    }
</script>